package me.notreally.incoming;

import java.io.File;

/**
 * @author caduffy
 * This class does the work to a single Target. It's passed a Target in the constructor and sees it though
 * the process. It collects profiles, checks criteria, and performs actions. The first matching profile's actions
 * are performed.
 */
public class Worker {
	
	File workingDirectory;
	File configFile;

	public void Worker(Target target){
		//TODO: Everything
		//Considering putting this functionality in with Target, since it should be a 1:1 relationship.
		
		//Hmmn. Maybe it's better to have it here. It's kinda weird to have a Target validate itself,
		//and validate it's config file, and load and parse said config file, etc...
		//Perhaps targets can carry their own Profiles, and perform their own Criteria checks and actions, 
		//but we use Worker to validate and load all that info.
		
		//Maybe Worker needs to be Loader. or TargetFactory. Or maybe it's just better
		//to allow target to control it's own destiny and put all this logic there.
	}
}
